package com.example.cd5160866.materialdesgin.capture;

import android.graphics.drawable.Drawable;
import android.view.View;

/**
 * Created by cd5160866 on 2018/1/18.
 */

public class CaptureViewDecorate {
    private int captureEdgeHorizontal = 0;
    private int captureEdgeVertical = 0;
    private Drawable captureBackGround = null;

    private View decorateView = null;
    private DecorateViewClickListener listener;
    private int decorateViewOffSetX = 0;
    private int decorateViewOffSetY = 0;

    public static CaptureViewDecorate getDefault() {
        return new CaptureViewDecorate(0, 0, null);
    }

    public CaptureViewDecorate(int captureEdgeHorizontal, int captureEdgeVertical, Drawable captureBackGround) {
        this.captureEdgeHorizontal = captureEdgeHorizontal;
        this.captureEdgeVertical = captureEdgeVertical;
        this.captureBackGround = captureBackGround;
    }

    public CaptureViewDecorate(View decorateView, DecorateViewClickListener listener, int decorateViewOffSetX, int decorateViewOffSetY) {
        this.decorateView = decorateView;
        this.listener = listener;
        this.decorateViewOffSetX = decorateViewOffSetX;
        this.decorateViewOffSetY = decorateViewOffSetY;
    }

    public CaptureViewDecorate(int captureEdgeHorizontal, int captureEdgeVertical, Drawable captureBackGround, View decorateView, DecorateViewClickListener listener, int decorateViewOffSetX, int decorateViewOffSetY) {
        this.captureEdgeHorizontal = captureEdgeHorizontal;
        this.captureEdgeVertical = captureEdgeVertical;
        this.captureBackGround = captureBackGround;
        this.decorateView = decorateView;
        this.listener = listener;
        this.decorateViewOffSetX = decorateViewOffSetX;
        this.decorateViewOffSetY = decorateViewOffSetY;
    }

    public int getCaptureEdgeHorizontal() {
        return captureEdgeHorizontal;
    }

    public int getCaptureEdgeVertical() {
        return captureEdgeVertical;
    }

    public Drawable getCaptureBackGround() {
        return captureBackGround;
    }

    public View getDecorateView() {
        return decorateView;
    }

    public int getDecorateViewOffSetX() {
        return decorateViewOffSetX;
    }

    public int getDecorateViewOffSetY() {
        return decorateViewOffSetY;
    }

    public DecorateViewClickListener getListener() {
        return listener;
    }
}

